projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0388d34
)
see ChangeLog
author
John Wiegley
<johnw@newartisans.com>
Fri, 16 Mar 2001 21:48:27 +0000
(21:48 +0000)
committer
John Wiegley
<johnw@newartisans.com>
Fri, 16 Mar 2001 21:48:27 +0000
(21:48 +0000)
lisp/calendar/timeclock.el
patch
|
blob
|
history
diff --git
a/lisp/calendar/timeclock.el
b/lisp/calendar/timeclock.el
index 550214c6c29371f93edd1f810c41be4d47be430d..d41a1f8c0a4295675cb6ca4ba667ca02d2114a7b 100644
(file)
--- a/
lisp/calendar/timeclock.el
+++ b/
lisp/calendar/timeclock.el
@@
-460,7
+460,8
@@
The amount returned is relative to the value of `timeclock-workday'.
If TODAY-ONLY is non-nil, the value returned will be relative only to
the time worked today, and not to past time. This argument only makes
a difference if `timeclock-relative' is non-nil."
- (- (timeclock-find-discrep today-only)))
+ (let ((discrep (timeclock-find-discrep today-only)))
+ (or (and discrep (- discrep)) 0.0)))
(defsubst timeclock-currently-in-p ()
"Return non-nil if the user is currently clocked in."